/* components/presale/presale.wxss */

.show-select-btn{
  background: #FDCA1F;
  width: 100%;
  height: 88rpx;
  line-height: 88rpx;
  font-size: 32rpx;
  color: #fff;
  text-align: center;
  border-radius: 88rpx;
  &:active{
    opacity: .6;
  }
  &.unusable{
    background: #D0DBD7;
    &:active{
      opacity: 1;
    }
  }
}


@keyframes presale-bottom
{
  from {bottom: -1000rpx;}
  to {bottom: 0;}
}

.select-body{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  background: rgba(0, 0, 0, .3);
  >.select-view{
    position: fixed;
    background: #fff;
    left: 0;
    right: 0;
    bottom: 0;
    border-top-left-radius: 30rpx;
    border-top-right-radius: 30rpx;
    animation: presale-bottom .3s;
    > .close-btn{
      float: right;
      margin: 20rpx 20rpx 0 0;
      width: 42rpx;
      height: 42rpx;
      &:active{
        background: #f3f4f6;
      }
      > image{
        width: 24rpx;
        height: 24rpx;
        margin: 10rpx 0 0 10rpx;
      }
    }
    > .title{
      font-size: 38rpx;
      font-weight: bold;
      margin: 49rpx 0 0 30rpx;
      padding-bottom: 48rpx;
      border-bottom: 1rpx solid #eee;
    }
    > .content{
      margin: 0 30rpx;
      .item{
        display: flex;
        border-bottom: 1rpx solid #eee;
        padding: 35rpx 0;
        align-items: center;
        position: relative;
        > .left{
          flex: 1;
        }
        > .right{
          flex: initial;
          > .right-img{
            width: 15rpx;
            height: 25rpx;
            margin-left: 28rpx;
          }
          > .minus-add-view{
            overflow: hidden;
            >.minus-img, >.add-img{
              width: 56rpx;
              height: 56rpx;
              float: right;
              &:active, &.unusable{
                opacity: .7;
              }
            }
            > .num{
              float: right;
              height: 56rpx;
              line-height: 56rpx;
              width: 80rpx;
              text-align: center;
              background: #f5f5f5;
              margin: 0 1rpx;
              font-size: 26rpx;
            }
          }
          >.discounts{
            margin-right: 16rpx;
            font-size: 26rpx;
            margin-left: 10rpx;
          }
          >.price-origin{
            text-decoration: line-through;
            color: #AEAEAE;
            font-size: 20rpx;
            margin-right: 16rpx;
          }
          >.price{
            color: #FF6868;
            font-weight: bold;
          }
          >.step-prices-hint{
            position: absolute;
            color: #FF6868;
            bottom: 28rpx;
            left: 0;
            right: 0;
            height: 22rpx;
            line-height: 22rpx;
            font-size: 22rpx;
            text-align: right;
          }
          > .discount-hint{
            color: #FF6868;
            font-size: 22rpx;
            display: block;
            text-align: right;
            position: absolute;
            right: 0;
            bottom: 3rpx;
          }
        }
      }
      .btn-view{
        padding: 20rpx 0;
        margin-top: 150rpx;
        > .btn1{
          background: #FDCA1F;
          font-size: 32rpx;
          color: #fff;
          height: 80rpx;
          border-radius: 80rpx;
          &:active{
            opacity: 0.7;
          }
          &::after{
            border: 0;
          }
        }
      }
    }
  }
}

/*输入*/
.input-body{
  position: fixed;
  z-index: 20;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  background: rgba($color: #000, $alpha: .4);
  >.input-view{
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 21;
    background: #fff;
    padding: 10rpx;
    display: flex;
    align-items: center;
    >.left{
      flex: 1;
      >input{
        text-align: left;
        height: 82rpx;
        line-height: 82rpx;
        font-size: 32rpx;
        padding-left: 10rpx;
      }
    }
    >.right{
      width: 120rpx;
      >.ok-btn{
        background: #00AE66;
        color: #fff;
        text-align: center;
        height: 82rpx;
        line-height: 82rpx;
        border-radius: 8rpx;
      }
    }
  }
}